// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(2400,"Proserpexa");
	if (gf(24,15) > 0)
		erase_char(2400);
		


//	set_attack_range(,);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

//	if (is_town_clear(ME))
//		clean_up_town();

	// set destroyed grove flag
	if (gf(18,12) > 0)
		sf(23,15,1);
	if (gf(19,12) > 0)
		sf(23,15,1);
	if (gf(24,12) > 0)
		sf(23,15,1);
	if (gf(29,12) > 0)
		sf(23,15,1);
	
	if (gf(24,11) > 0)
		sf(24,4,1);
	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((is_talking() == FALSE) && (gf(24,18) == 1)) {
		sf(24,18,2);
		begin_talk_mode(17);
		}
	if ((set_ter1 == 0) && (gf(24,11) > 0)) {
		set_ter1 = 1;
		set_terrain(0,30,20,0);
		set_terrain(0,30,21,0);

		set_terrain(0,51,34,430);
		set_terrain(0,19,53,429);
		}
		
	if (gf(24,11) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"The heart must be healed.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"I can't act.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"The path can't be lost.");
		}
	if (gf(24,11) > 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"It is done.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"I must go.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(2400,"To Tehrorman.");
		}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	if ((gf(,) > 0) && (gf(,) < 100))
	//	}
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
